package chai.util
{
	import mx.collections.ArrayCollection;
	
	public class StringUtils
	{
		public static function join(elts:ArrayCollection, delimiter:String):String
		{
			var result:String = "";
			for (var ii:int = 0; ii < elts.length - 1; ii++)
				result += elts.getItemAt(ii).toString() + delimiter;
			if (elts.length > 0)
				result += elts.getItemAt(elts.length - 1).toString();
			return result;
		}
	}
}